
<!-- Navbar ================================================== -->

<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <nav class="nav-collapse collapse">
                <ul class="nav">

                    <li class="">
                        <a href="../index.php">Strona główna</a>
                    </li>
                    <li class="">
                        <a href="../view/about_view.php">O nas</a>
                    </li>
                    <li class="">
                        <a href="../view/offerts_view.php">Oferta</a>
                    </li>
                    <li class="">
                        <a href="../view/contact_view.php">Kontakt</a>
                    </li>
                </ul>


                <?php if (!isset($_SESSION['zalogowany'])): ?>                
                    <form class="form-inline" style="margin:0; float:right;" action="./function/login.php" method="post" enctype="multipart/form-data"  name="form1">
                        <input type="text" name="use_email" class="input-small" size="30" placeholder="email">
                        <input type="password" name="use_password" class="input-small" placeholder="hasło">
                        <label class="checkbox" style="color: #999;">
                            <input type="checkbox"> Zapamiętaj mnie
                        </label>
                        <input type="submit"name='wyslij' value="Zaloguj" class="btn btn-primary" />
                    </form>
                <?php else: ?>

                    <div style="float: right;">
                        <ul class="nav"><li style="margin-top: 10px; color: #fff;"><?php echo "Witaj, " . $_SESSION['use_email']; ?></li></ul>

                        <form method='POST' action='../function/logout.php' style="float:right; margin:0;">
                            <input type='submit' value='Wyloguj' class="btn" name='wyloguj'>
                        </form>

                        <a href="/view/edit_user_view.php" class="btn btn-primary" style="float:right;">Panel użytkownika</a>

                    </div>
                <?php endif; ?>

            </nav>
        </div>
    </div>
</div>